import requests,time
class TinyShop:
    def __init__(self):
        s = requests.session()
        self.s = s

    def login(self,a):
        self.s.get(url="http://192.168.4.226/TinyShop_v1.7/index.php?con=admin&act=captcha&h=40&w=120&bc=3f4657&c=ffffff")
        url_lgin = "http://192.168.4.226/TinyShop_v1.7/index.php?con=admin&act=check"
        # data = {"name":"admin","password":"123456"}
        we = self.s.post(url=url_lgin,data=a)
        # cd = we.text
        return  we.text
        # if "退出" in cd:
        #     print("login pass")
        # else:
        #     print("login failed")

if  __name__ =="__main__":
    TinyShop()